package com.work.shart.common.exception;

/**
 * 异常错误码参照表
 *
 * @author cong
 */
public enum ExceptionEnum {
    VALID_PARAM(-1, "参数校验异常"),
    BIZ_RUNTIME(-2, "通用业务异常"),
    FEIGN_CLIENT(-3, "FeignClient调用异常"),
    TOKEN_INVALID(-4, "token令牌已失效 请重新获取"),
    TOKEN_PLEASE_SEND(-5, "请先访问/retailers-user-server/api/login/token接口获取token令牌"),
    TOKEN_ERROR(-6, "token令牌错误"),
    LOGIN_ERROR(-7, "授权失败,账号密码错误");
    private int code;
    private String msg;


    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
